home *** CD-ROM | disk | FTP | other *** search
/ Collection of Internet / Collection of Internet.iso / msdos / lynx / source / doslynx / src / theapvi3.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1994-10-25  |  749 b   |  28 lines

  1. //    Copyright (c) 1993, University of Kansas, All Rights Reserved
  2. //
  3. //    Class:        THeapView
  4. //    Include File:    THeapView.H
  5. //    Purpose:    Display amount of remaining heap memory
  6. //    Remarks/Portability/Dependencies/Restrictions:
  7. //    Revision History:
  8. //        12-13-93    created
  9. //        02-10-94    Split all members into seperate files.
  10. #include"theapview.h"
  11.  
  12. void THeapView::draw()    {
  13. //    Purpose:    ReDraw the view to the display
  14. //    Arguments:    none
  15. //    Return Value:    none
  16. //    Remarks/Portability/Dependencies/Restrictions:
  17. //    Revision History:
  18. //        12-13-93    created
  19.  
  20.     TDrawBuffer TDB;
  21.     char c = getColor(2);
  22.  
  23.     //    First clear, then redraw the view
  24.     TDB.moveChar(0, ' ', c, size.x);
  25.     TDB.moveStr(0, HeapInAscii, c);
  26.     writeLine(0, 0, size.x, 1, TDB);
  27. }
  28.